<template>
  <div class="row justify-content-center">
    <div class="col-8">
      <div v-if="roomFile">
        <h2 class="jh-entity-heading" data-cy="roomFileDetailsHeading"><span>RoomFile</span> {{ roomFile.id }}</h2>
        <dl class="row jh-entity-details">
          <dt>
            <span>File Name</span>
          </dt>
          <dd>
            <span>{{ roomFile.fileName }}</span>
          </dd>
          <dt>
            <span>File Ext</span>
          </dt>
          <dd>
            <span>{{ roomFile.fileExt }}</span>
          </dd>
          <dt>
            <span>File Type</span>
          </dt>
          <dd>
            <span>{{ roomFile.fileType }}</span>
          </dd>
          <dt>
            <span>Image Type</span>
          </dt>
          <dd>
            <span>{{ roomFile.imageType }}</span>
          </dd>
          <dt>
            <span>File Remark</span>
          </dt>
          <dd>
            <span>{{ roomFile.fileRemark }}</span>
          </dd>
          <dt>
            <span>File Group</span>
          </dt>
          <dd>
            <span>{{ roomFile.fileGroup }}</span>
          </dd>
          <dt>
            <span>File Path</span>
          </dt>
          <dd>
            <span>{{ roomFile.filePath }}</span>
          </dd>
          <dt>
            <span>Created By</span>
          </dt>
          <dd>
            <span>{{ roomFile.createdBy }}</span>
          </dd>
          <dt>
            <span>Created Date</span>
          </dt>
          <dd>
            <span>{{ roomFile.createdDate | formatDate }}</span>
          </dd>
          <dt>
            <span>Last Modified By</span>
          </dt>
          <dd>
            <span>{{ roomFile.lastModifiedBy }}</span>
          </dd>
          <dt>
            <span>Last Modified Date</span>
          </dt>
          <dd>
            <span>{{ roomFile.lastModifiedDate | formatDate }}</span>
          </dd>
        </dl>
        <button type="submit" v-on:click.prevent="previousState()" class="btn btn-info" data-cy="entityDetailsBackButton">
          <font-awesome-icon icon="arrow-left"></font-awesome-icon>&nbsp;<span> Back</span>
        </button>
        <router-link v-if="roomFile.id" :to="{ name: 'RoomFileEdit', params: { roomFileId: roomFile.id } }" custom v-slot="{ navigate }">
          <button @click="navigate" class="btn btn-primary">
            <font-awesome-icon icon="pencil-alt"></font-awesome-icon>&nbsp;<span> Edit</span>
          </button>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script lang="ts" src="./room-file-details.component.ts"></script>
